"""Frame ring buffer and simple distance helpers (skeleton)."""
from collections import deque


class FrameRing:
    def __init__(self, maxlen: int = 30):
        self.buf = deque(maxlen=maxlen)

    def push(self, item):
        self.buf.append(item)

